function switchPanel(msg){
    var blogList = document.getElementById("blog-list");
    var blogDetail = document.getElementById("blog-detail");
    
    switch(msg){
        case "blog-list":
            blogDetail.style.display = "none";
            blogList.style.display = "block";
            break;
        case "blog-detail":
            blogList.style.display = "none";
            blogDetail.style.display = "block";
            break;
    }
}